package com.lemner.ke.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.lemner.ke.R;
import com.lemner.ke.base.BaseActivity;
import com.lemner.ke.base.TopBar;
import com.lemner.ke.util.SpUtils;

/**

* 作者：张恺

* 时间：2018/9/18

* 类描述：消息页面

*/

public class MessageActivity extends BaseActivity {
    int loginStatus;
    @Override
    public int getLayoutFile() {
        return R.layout.activity_message;
    }

    @Override
    public void initView() {
    }

    @Override
    public void initEvent() {
    }

    @Override
    public void initData() {

        loginStatus = SpUtils.getInt(getContext(), SpUtils.LOGIN_STATUS);
        if (loginStatus == SpUtils.UNLOGIN){
            startActivity(new Intent(this, LoginActivity.class));
            finish();
        }
    }

    @Override
    protected void initSetting() {
        topBar.setTitle("消息设置");
    }

    @Override
    public void onClick(View v) {

    }
}
